package com.googlecode.lookie.platform.settings;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.richclient.settings.Settings;

public class DefaultSettingsInitializer
    implements InitializingBean
{

    @Autowired
    private LookieSettingsManager settingsManager;

    public void afterPropertiesSet()
    {
        Settings userSettings = settingsManager.getUserSettings();

        userSettings.setDefaultBoolean( SettingsIds.SHOW_TIPS, true );
        userSettings.setDefaultBoolean( SettingsIds.USE_NATIVE_ICONS, true );
        userSettings.setDefaultString( SettingsIds.LAF, "system.System" );
        userSettings.setDefaultInt( SettingsIds.THUMB_SIZE, 100 );

    }

}
